package com.zhos.demo.controller;


import com.zhos.demo.model.Shiro;
import com.zhos.demo.service.IShiroService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author astupidcoder
 * @since 2021-01-02
 */
@RestController
@RequestMapping("/shiro")
public class ShiroController {

    @Autowired
    private IShiroService iShiroService;

    @GetMapping("/view")
    public Shiro getShiro() {
        return iShiroService.getById(1);
    }
}
